<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // 扩展运算符可以将数组或者对象转为用逗号分割的参数序列
      let arr = [1, 2, 3];
      //   ...arr
      console.log(...arr);
      // 数组合并
      let arr1 = [1, 2, 3];
      let arr2 = [4, 5, 6];
      let arr3 = [...arr1, ...arr2];
    </script>
  </body>
</html>
